﻿using ConfExpert.Forms.Base;
using DevTeam;

using System;
namespace ConfExpert.Forms.Destex.Satis
{
    public partial class Kaliteler : XForm
    {
        public Kaliteler()
        {
            InitializeComponent();
        }

        private void Kaliteler_Load(object sender, EventArgs e)
        {
            gridView1.Init("DX_CompareKalite");
            gridView1.AddDetailGrid(gridView2, "Book,MontiKalite,KompozisyonId");
            gridView1.AddSummary();

            gridView1.MakeReadOnly();
            gridView2.MakeReadOnly();
            gridView1.BestFitColumns();
            gridView2.BestFitColumns();

            gridView1.FocusedRowChanged += gridView1_FocusedRowChanged;
            splitContainerControl1.AutoSize();
        }

        void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            gridView2.BestFitColumns();
        }
    }
}
